﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TemplatesPrint.Tools;

namespace TemplatesPrint.DTO
{
    /// <summary>
    /// 公共返回结果类
    /// </summary> 
    public class ReturnDto
    {
        private string mac=PublicTool.MacAddress;
        public string MacAddress
        {
            get { return mac; }
            set { mac = value; }
        }
        private string ip=PublicTool.IpAddress;
        public string IpAddress
        {
            get { return ip; }
            set { ip = value; }
        }
        private string  msgId ;
        public string MsgId
        {
            get { return msgId; }
            set { msgId = value; }
        }
        private string msType;
        public string MsgType
        {
            get { return msType; }
            set { msType = value; }
        }
        private bool isSuccess = true;
        public bool IsSuccess
        {
            get { return isSuccess; }
            set { isSuccess = value; }
        }

        //打印状态 0、已接收 1、打印中  2、打印完成 3、打印异常 4、其他异常
        private int status;
        public int Status
        {
            get { return status; }
            set { status = value; }
        }

        private string message;
        public string Message
        {
            get { return message; }
            set { message = value; }
        }
        /// <summary>
        /// 返回某条数据，例如成功后的ID
        /// </summary>
        private object data;
        public object Data
        {
            get { return data; }
            set { data = value; }
        }
    }
}
